export type ListRequest = {
  page: number,
  size: number,
  start_time?: number//起始日期时间戳
  end_time?: number//结束日期时间戳
}

export type AddRequest = {
  id?: number,
  supplier_id: number,//供货商
  status: number,//货运状态：1，预定；2，到货
  balance_status: boolean,//尾款状态：true.已付；false.未付
  date: number,//入库日期
  has_tax: boolean,//是否含税
  tax: number,//税率(%)
  deposit: number,//定金
  list: AddMaterial[], //原材料列表
}

export type AddMaterial = {
  materials_id: number,//原材料id
  material_name: string,//原材料规格
  material_types: string,//原材料材质
  weight: number,//原材料数量（千克）
  price: number,//原材料单价(元)
}

//入库单汇总数据
export type StockInSummary = {
  today: StockInSummaryItem,
  week: StockInSummaryItem,
  month: StockInSummaryItem,
}

export type StockInSummaryItem = {
  orders: number, //入库单数量
  weight: number,//入库原材料重量（吨）
  total: number,//入库原材料总金额（元）
}

export type StockInBalanceRequest = {
  id: number,
  balance_status: boolean
}

export type RemoveRequest = {
  id: number
}
